import React, {useState} from 'react'
import ReactDOM from 'react-dom/client'
import {createBrowserRouter, RouterProvider} from "react-router-dom";
import "./index.css"
import ErrorPage from "./error-page";
import Orders from '@/demos/orders/page.jsx';



const router = createBrowserRouter([
    {
        path: "/",
        element: <Orders />,
        errorElement: <ErrorPage />,
        
    },
]);
ReactDOM.createRoot(document.getElementById('root')).render(
        <RouterProvider router={router} />
)

postMessage({payload: 'removeLoading'}, '*')
